import Vue from "vue";
import Router from "vue-router";
import Home from "./views/home";
import Login from "./views/login";
import Reg from "./views/reg";
import Kefu from "./views/kefu";
import Guizhe from "./views/guizhe";

Vue.use(Router);
export default new Router({
    routes: [
        {
            path: "/",
            name: "home",
            component: Home,
            meta: {
              index: 1,
              title: '首页',
              is_hidden: true,
              requireAuth: false
            }
        },
        {
            path: "/home",
            name: "home",
            component: Home,
            meta: {
              index: 1,
              title: '首页',
              is_hidden: true,
              requireAuth: false
            }
        },
        {
            path: "/login",
            name: "login",
            component: Login,
            meta: {
              index: 1,
              title: '登陆',
              is_hidden: true,
              requireAuth: false
            }
        },
        {
            path: "/reg",
            name: "reg",
            component: Reg,
            meta: {
              index: 1,
              title: '注册',
              is_hidden: true,
              requireAuth: false
            }
        },
        {
            path: "/kefu",
            name: "kefu",
            component: Kefu,
            meta: {
              index: 1,
              title: '联系客服',
              is_hidden: true,
              requireAuth: false
            }
        },
        {
            path: "/guizhe",
            name: "guizhe",
            component: Guizhe,
            meta: {
              index: 1,
              title: '游戏规则',
              is_hidden: true,
              requireAuth: false
            }
        }
    ]
});
